﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_tableWidget_itemSelectionChanged();

    void on_pushButtonSearch_clicked();

    void on_pushButtonAddRow_clicked();

    void on_pushButtonDelSelRow_clicked();

    void on_pushButtonDelSelItem_clicked();

private:
    Ui::MainWindow *ui;

    //初始化表格函数
    void InitScoresTable();
    //设置某行的行首和四个单元格
    void SetTableRow(int nRow, QString strName,
                     QString strChinese, QString strMath,
                     QString strForeignLanguage, QString strFood);
};
#endif // MAINWINDOW_H
